package org.fruitrecognitionbasedonai.fruitrecognitionbasedonai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Author: Re
 * @Date: 2021/6/19 23:02
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("record")
public class Record {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("name")
    @NotNull(message = "名称不能为空")
    private String name;
    @TableField("picture_url")
    private String pictureUrl;
    @TableField("score")
    private float score;
    @TableField("request_id")
    private String requestId;
    @TableField("request_time")
    private Date requestTime;

}
